package com.joolun.weixin.mapper;

import java.util.List;
import java.util.Map;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.joolun.system.domain.ScrmChannelStatistics;
import org.apache.ibatis.annotations.Param;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * 渠道数据统计Mapper接口
 * 
 * @author joolun
 * @date 2025-03-19
 */
public interface ScrmChannelStatisticsMapper extends BaseMapper<ScrmChannelStatistics>
{
    /**
     * 查询渠道数据统计
     * 
     * @param id 渠道数据统计主键
     * @return 渠道数据统计
     */
    public ScrmChannelStatistics selectScrmChannelStatisticsById(Long id);

    /**
     * 查询渠道数据统计列表
     * 
     * @param scrmChannelStatistics 渠道数据统计
     * @return 渠道数据统计集合
     */
    public List<ScrmChannelStatistics> selectScrmChannelStatisticsList(ScrmChannelStatistics scrmChannelStatistics);

    /**
     * 查询渠道数据统计列表
     *
     * @param params 渠道数据统计
     * @return 渠道数据统计集合
     */
    public List<ScrmChannelStatistics> summary(@Param("params") Map<String, Object> params);

    /**
     * 新增渠道数据统计
     * 
     * @param scrmChannelStatistics 渠道数据统计
     * @return 结果
     */
    public int insertScrmChannelStatistics(ScrmChannelStatistics scrmChannelStatistics);

    /**
     * 修改渠道数据统计
     * 
     * @param scrmChannelStatistics 渠道数据统计
     * @return 结果
     */
    public int updateScrmChannelStatistics(ScrmChannelStatistics scrmChannelStatistics);

    /**
     * 删除渠道数据统计
     * 
     * @param id 渠道数据统计主键
     * @return 结果
     */
    public int deleteScrmChannelStatisticsById(Long id);

    /**
     * 批量删除渠道数据统计
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteScrmChannelStatisticsByIds(Long[] ids);
}
